/*
 * errconst.h
 *
 *  Created on: 2012-3-30
 *      Author: Administrator
 */
#ifndef ERRCONST_H_
#define ERRCONST_H_

/*
#define ERR_NO_ERR                  0x00
#define ERR_OVER_INDEX              0x01
#define ERR_REPEAT_INIT             0x02
#define ERR_ROUND_DETECT_IO_ERR_L   0x03
#define ERR_ROUND_DETECT_IO_ERR_H   0x04
#define ERR_MOTOR_DRIVER_BREAK      0x05
#define ERR_MOTOR_DRIVER_SHORT      0x06
#define ERR_LIST_IS_FULL            0x07
#define ERR_TIMER_EXISTED           0x08
#define ERR_TIMER_NOT_EXIST         0x09
#define ERR_INVALID_OBJECT          0x0a
#define ERR_CANT_FIND_USERDATA      0x0b
#define ERR_ROUND_OVER_TIME         0x0c
#define ERR_CHK_READER              0x0d
#define ERR_NO_CARD                 0x0e
#define ERR_INVALID_PARA            0x0f
#define ERR_FAIL_LOAD_PWD           0x10
#define ERR_READ_DATA               0x11
#define ERR_CARD_PWD_WRONG          0x12
#define ERR_WRT_DATA                0x13
#define ERR_BEEP                    0x14
#define ERR_BALANCE_DATA            0x15
#define ERR_VAL_DATA                0x16
#define ERR_CARD_NOT_INIT           0x17
#define ERR_NOT_ENOUGH_MONEY        0x18
#define ERR_CARD_PROTECT_BLOCK      0x19
#define ERR_SLOT_FAULT              0x1a
#define ERR_SLOT_NO_STOCK           0x1b
#define ERR_SLOT_INHIBIT            0x1c
#define ERR_SLOT_INVALID            0x1d
#define ERR_LCD_OVER_X              0x1e
#define ERR_LCD_OVER_Y              0x1f
#define ERR_RECEIVE_DATA_ERR        0x20
#define ERR_LOOP_OVER_TIME          0x21
#define ERR_BAUD_NOT_CORRECT        0x22
*/


typedef enum{
ERR_NO_ERR                  =0x00,
ERR_OVER_INDEX,
ERR_REPEAT_INIT,
ERR_ROUND_DETECT_IO_ERR_L,
ERR_ROUND_DETECT_IO_ERR_H,
ERR_MOTOR_DRIVER_BREAK,
ERR_MOTOR_DRIVER_SHORT,
ERR_LIST_IS_FULL,
ERR_TIMER_EXISTED,
ERR_TIMER_NOT_EXIST,
ERR_INVALID_OBJECT,
ERR_CANT_FIND_USERDATA,
ERR_ROUND_OVER_TIME,
ERR_CHK_READER,
ERR_NO_CARD ,
ERR_INVALID_PARA,
ERR_FAIL_LOAD_PWD,
ERR_READ_DATA,
ERR_CARD_PWD_WRONG,
ERR_WRT_DATA,
ERR_BEEP,
ERR_BALANCE_DATA,
ERR_VAL_DATA,
ERR_CARD_NOT_INIT,
ERR_NOT_ENOUGH_MONEY,
ERR_CARD_PROTECT_BLOCK,
ERR_SLOT_FAULT,
ERR_SLOT_NO_STOCK,
ERR_SLOT_INHIBIT,
ERR_SLOT_INVALID,
ERR_LCD_OVER_X,
ERR_LCD_OVER_Y,
ERR_RECEIVE_DATA_ERR,
ERR_CANT_FIND_SYSDATA,
ERR_QUEUE_FULL,
ERR_QUEUE_EMPTY,
ERR_GPRS_RET_OVERTIME,
ERR_GPRS_RET_OVER_FLOW,
ERR_GPRS_RET_ERROR,
ERR_GPRS_OTHER_ERROR,
ERR_MICRO_SW_FAULT,
ERE_VP_DATACHK_ERR,
ERR_VP_STARTSIGN_ERR,
ERR_VP_VER_ERR,
ERR_VP_NO_HOST_CONNECT,
ERR_LOOP_OVER_TIME,
ERR_BAUD_NOT_CORRECT,
ERR_TIME_OVER,
ERR_SLOT_DRI_ADDR,
ERR_CRC,
ERR_SLOT_BUSY,
ERR_FRAME_ID,
ERR_BREAK_DRIVER_LINK,
ERR_BREAK_PC_LINK,
ERR_BREAK_SERVER_LINK,
ERR_MDB_NAK,
ERR_MDB_CHK_DC,
ERR_MDB_NO_CHANGER,
ERR_MDB_NO_BILLACCEPTOR,
ERR_NCODE_UPDATE,
ERR_FAIL_TO_UPDATE,


ERR_NO_SLOT_IS_OK           =0xfe,
ERR_NO_BUTTON_DOWN
}Err;


//extern const INT8U * ErrString(Err no);

#endif /* ERRCONST_H_ */
